package com.beyondsoft.common.activiti.exception;

/**
 * @author chengtianping
 * @description 自定义异常
 */
public class ActivitiException extends RuntimeException{

    private Integer code;

    private String message;
    public ActivitiException(String code, String message){

    }

    public ActivitiException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public ActivitiException(ResultCode resultCode) {
        this.code = resultCode.getCode();
        this.message = resultCode.getDesc();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
